package org.exercise10.visitor.impl;

import org.exercise10.visitor.Element;
import org.exercise10.visitor.Visitor;

/**
 * @author Stranger
 * @version 1.0
 * @description: TODO
 * @date 2022/12/20 19:28
 */
public class FinancialManager implements Visitor {

    @Override
    public void action(Element element) {
        Employee employee = (Employee) element;
        switch (employee.getType()) {
            case "String":
                System.out.println(employee.getType());
                break;
            case "float":
                System.out.println("F" + employee.getType());
                break;
            case "int":
                System.out.println("I" + employee.getType());
                break;
        }
    }
}
